<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/system/layui/css/layui.css" media="all">
</head>
<body>
<blockquote class="layui-elem-quote quoteBox">
    <div class="layui-inline" style="width: 200px;">
        <br>
        <input type="text" class="layui-input name" name="id" id="demoReload" autocomplete="off" placeholder="请输入姓名">
        <button class="layui-btn layui-btn-layui-btn-normal" data-type="reload" id="searchTransport" style="position: absolute;left: 210px;top:20px;">搜索</button>
        <shiro:hasPermission name = "SysStaff|toAdd">
        <a class="layui-btn layui-btn-normal" onclick="insert()" style="position: absolute;left: 270px;top:20px;" th:text="添加员工信息"></a>
        </shiro:hasPermission>
        <shiro:hasPermission name = "SysStaff|toDelete">
            <a class="layui-btn layui-btn-danger layui-btn-normal" style="position: absolute;left: 398px;top:20px;" onclick="delAll()" th:text="批量删除"></a>
        </shiro:hasPermission>
    </div>
</blockquote>
    <table id="staffList" lay-filter="staffList"></table>
</body>
<script src="/system/layui/layui.js"></script>
<script type="text/javascript" src="/system/js/jquery-3.3.1.js"></script>
<script type="text/javascript" src="/staff/staff.js"></script>
<script type="text/html" id="bar">
    <shiro:hasPermission name = "SysStaff|toEdit">
        <a class="layui-btn layui-btn-xs" lay-event="tableUpdate" th:text="编辑"></a>
    </shiro:hasPermission>
    <shiro:hasPermission name = "SysStaff|toDelete">
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="tableDelete" th:text="删除"></a>
    </shiro:hasPermission>
</script>
</html>